<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>N3RD CH4T: clientInformation Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">N3RD CH4T
   &#160;<span id="projectnumber">Final Version</span>
   </div>
   <div id="projectbrief">CS340 Project</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-slots">Public Slots</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">clientInformation Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="clientInformation" -->
<p><a class="el" href="class_client.html" title="The Client helper methods.">Client</a> helper methods.  
 <a href="classclient_information.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="clientinformation_8h_source.html">clientinformation.h</a>&gt;</code></p>

<p><a href="classclient_information-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-slots"></a>
Public Slots</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclient_information.html#a9edc0627eca71bb833a5b250ce5d1b78">handleRemoveFriend</a> (<a class="el" href="classclient_information.html">clientInformation</a> *personSendingRequest, bool isValid)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Slot to handle the signal from removing a friend.  <a href="#a9edc0627eca71bb833a5b250ce5d1b78"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclient_information.html#ae2f64901a317f6b151e352e3054ab731">handleIsValidRemoveFriend</a> (QString personToRemove, bool isValid)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Slot to handle the signal from whether or not a valid remove friend request wsa sent.  <a href="#ae2f64901a317f6b151e352e3054ab731"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclient_information.html#af6949cea8c0b3d89741e2915fe4eee83">handleAddFriend</a> (QString personSendingRequest)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Slot to handle the signal from adding a friend. The object that calls this slot is the user that the request is sent to.  <a href="#af6949cea8c0b3d89741e2915fe4eee83"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclient_information.html#a520f5d73a13e6b6464673d4df8724116">handleIsValidFriendRequest</a> (QString personToAdd, bool isValid)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Slot to handle the signal from checking if the friend request that was sent is valid or not.  <a href="#a520f5d73a13e6b6464673d4df8724116"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclient_information.html#ae3a38d29143c06cffba8385cbb648809">handleFriendAcceptance</a> (<a class="el" href="classclient_information.html">clientInformation</a> *sentUser, bool isAccepted)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Slot to handle the signal from a friend acceptance. The user that calls this slot is the user that is recieving the friend acceptance.  <a href="#ae3a38d29143c06cffba8385cbb648809"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclient_information.html#aebdd7540395148bab15b27ac0ae63968">handleSendMessage</a> (QString fromUser, QString toUser, QString message, QString timeSent)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Slot to handle the signal from a sent message. The user that calls this slot is the user that is sending the message.  <a href="#aebdd7540395148bab15b27ac0ae63968"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7190d81646cf44fde129d34446bafa97"></a><!-- doxytag: member="clientInformation::clientInformation" ref="a7190d81646cf44fde129d34446bafa97" args="(QString name, QTcpSocket *socket)" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclient_information.html#a7190d81646cf44fde129d34446bafa97">clientInformation</a> (QString name, QTcpSocket *socket)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor with name and socket. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a37a0feeb256a95aa6265b04f091966b9"></a><!-- doxytag: member="clientInformation::clientInformation" ref="a37a0feeb256a95aa6265b04f091966b9" args="(QString name, QStringList friendsList)" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclient_information.html#a37a0feeb256a95aa6265b04f091966b9">clientInformation</a> (QString name, QStringList friendsList)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor with name and friendsList. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclient_information.html#a002396f42cea76e92b47f8967afea8ad">updateSocket</a> (QTcpSocket *sockToUpdateTo)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Updates the current socket to a new socket.  <a href="#a002396f42cea76e92b47f8967afea8ad"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclient_information.html#ab54225eaa4950b985aed1fc1afa8e743">sendOnlineFriendsList</a> (QList&lt; QString &gt; serverUsersOnline)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sends a list of friends online.  <a href="#ab54225eaa4950b985aed1fc1afa8e743"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QTcpSocket *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclient_information.html#a5edd8226de076e4819ed0c4890314403">getSocket</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclient_information.html#a720595dfe2672915c93a32b23247b96e">getUserName</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclient_information.html#af9bf597778e57d9e35d9b754a6ab7bcc">sendMessage</a> (QString personThatSentMessage, QString message, QString timeSentAt)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sends message passed in to the person in the parameters with the time the message was sent at.  <a href="#af9bf597778e57d9e35d9b754a6ab7bcc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclient_information.html#a2cd9e345db3e81e13774caa8d177c1e1">addToFriendsList</a> (<a class="el" href="classclient_information.html">clientInformation</a> *buddy)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds the parameter user to the friends list of this user.  <a href="#a2cd9e345db3e81e13774caa8d177c1e1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclient_information.html#ae1b4d3d1500f4579a84493244ef8bde2">removeFromFriendsList</a> (<a class="el" href="classclient_information.html">clientInformation</a> *nonFriend)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes the parameter user to the friends list of this user.  <a href="#ae1b4d3d1500f4579a84493244ef8bde2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclient_information.html#ace9eaf311dea9e224a428f6146a387e9">isUserFriend</a> (QString user)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks whether or not the parameter friend is in the friends list of this user.  <a href="#ace9eaf311dea9e224a428f6146a387e9"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0142b2adaae615cc2972937f71af6d53"></a><!-- doxytag: member="clientInformation::stringListOfFriends" ref="a0142b2adaae615cc2972937f71af6d53" args="" -->
QStringList&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclient_information.html#a0142b2adaae615cc2972937f71af6d53">stringListOfFriends</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">StringList that contains the individual strings of the friends of this user. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6ebc6a454c29fb48ed90931093e966bc"></a><!-- doxytag: member="clientInformation::tableOfFriends" ref="a6ebc6a454c29fb48ed90931093e966bc" args="" -->
QHash&lt; QString, <br class="typebreak"/>
<a class="el" href="classclient_information.html">clientInformation</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclient_information.html#a6ebc6a454c29fb48ed90931093e966bc">tableOfFriends</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Table that contains the name of the user and its corresponding <a class="el" href="classclient_information.html" title="Client helper methods.">clientInformation</a> object pointer. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a544931963ab7110241057edeab615bce"></a><!-- doxytag: member="clientInformation::userName" ref="a544931963ab7110241057edeab615bce" args="" -->
QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclient_information.html#a544931963ab7110241057edeab615bce">userName</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Username of this person. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a58ca7874597d3b4e187b47ee249eca88"></a><!-- doxytag: member="clientInformation::sock" ref="a58ca7874597d3b4e187b47ee249eca88" args="" -->
QTcpSocket *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclient_information.html#a58ca7874597d3b4e187b47ee249eca88">sock</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">TcpSocket used in order to talk to the user. <br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p><a class="el" href="class_client.html" title="The Client helper methods.">Client</a> helper methods. </p>
<p>Container class for the user including socket, friends list, and other information. </p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a2cd9e345db3e81e13774caa8d177c1e1"></a><!-- doxytag: member="clientInformation::addToFriendsList" ref="a2cd9e345db3e81e13774caa8d177c1e1" args="(clientInformation *buddy)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool clientInformation::addToFriendsList </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classclient_information.html">clientInformation</a> *&#160;</td>
          <td class="paramname"><em>buddy</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adds the parameter user to the friends list of this user. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">buddy</td><td><a class="el" href="classclient_information.html" title="Client helper methods.">clientInformation</a> object of the user to add as a friend to this user </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A boolean value indicating whether or not the addition was successfully or not </dd></dl>

</div>
</div>
<a class="anchor" id="a5edd8226de076e4819ed0c4890314403"></a><!-- doxytag: member="clientInformation::getSocket" ref="a5edd8226de076e4819ed0c4890314403" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QTcpSocket * clientInformation::getSocket </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>getSocket method </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A QTcpSocket being used </dd></dl>

</div>
</div>
<a class="anchor" id="a720595dfe2672915c93a32b23247b96e"></a><!-- doxytag: member="clientInformation::getUserName" ref="a720595dfe2672915c93a32b23247b96e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString clientInformation::getUserName </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>getUserName method </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A QString username being used </dd></dl>

</div>
</div>
<a class="anchor" id="af6949cea8c0b3d89741e2915fe4eee83"></a><!-- doxytag: member="clientInformation::handleAddFriend" ref="af6949cea8c0b3d89741e2915fe4eee83" args="(QString personSendingRequest)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void clientInformation::handleAddFriend </td>
          <td>(</td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname"><em>personSendingRequest</em></td><td>)</td>
          <td><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Slot to handle the signal from adding a friend. The object that calls this slot is the user that the request is sent to. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">personSendingRequest</td><td>QString name of the person that sent the add friend request </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ae3a38d29143c06cffba8385cbb648809"></a><!-- doxytag: member="clientInformation::handleFriendAcceptance" ref="ae3a38d29143c06cffba8385cbb648809" args="(clientInformation *sentUser, bool isAccepted)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void clientInformation::handleFriendAcceptance </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classclient_information.html">clientInformation</a> *&#160;</td>
          <td class="paramname"><em>sentUser</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>isAccepted</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Slot to handle the signal from a friend acceptance. The user that calls this slot is the user that is recieving the friend acceptance. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">sentUser</td><td><a class="el" href="classclient_information.html" title="Client helper methods.">clientInformation</a> object of the person that sent the add friend request </td></tr>
    <tr><td class="paramname">isAccepted</td><td>boolean value indicating if the request was accepted or not </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a520f5d73a13e6b6464673d4df8724116"></a><!-- doxytag: member="clientInformation::handleIsValidFriendRequest" ref="a520f5d73a13e6b6464673d4df8724116" args="(QString personToAdd, bool isValid)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void clientInformation::handleIsValidFriendRequest </td>
          <td>(</td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname"><em>personToAdd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>isValid</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Slot to handle the signal from checking if the friend request that was sent is valid or not. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">personToAdd</td><td>QString name of the person that sent the add friend request </td></tr>
    <tr><td class="paramname">isValid</td><td>boolean value indicating if the request was valid or not </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ae2f64901a317f6b151e352e3054ab731"></a><!-- doxytag: member="clientInformation::handleIsValidRemoveFriend" ref="ae2f64901a317f6b151e352e3054ab731" args="(QString personToRemove, bool isValid)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void clientInformation::handleIsValidRemoveFriend </td>
          <td>(</td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname"><em>personToRemove</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>isValid</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Slot to handle the signal from whether or not a valid remove friend request wsa sent. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">personToRemove</td><td><a class="el" href="classclient_information.html" title="Client helper methods.">clientInformation</a> object of the user to to remove </td></tr>
    <tr><td class="paramname">isValid</td><td>boolean value indicating if this remove operation is valid or not </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a9edc0627eca71bb833a5b250ce5d1b78"></a><!-- doxytag: member="clientInformation::handleRemoveFriend" ref="a9edc0627eca71bb833a5b250ce5d1b78" args="(clientInformation *personSendingRequest, bool isValid)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void clientInformation::handleRemoveFriend </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classclient_information.html">clientInformation</a> *&#160;</td>
          <td class="paramname"><em>personSendingRequest</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>isValid</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Slot to handle the signal from removing a friend. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">personSendingRequest</td><td><a class="el" href="classclient_information.html" title="Client helper methods.">clientInformation</a> object of the user to to remove </td></tr>
    <tr><td class="paramname">isValid</td><td>boolean value indicating if this remove operation is valid or not </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aebdd7540395148bab15b27ac0ae63968"></a><!-- doxytag: member="clientInformation::handleSendMessage" ref="aebdd7540395148bab15b27ac0ae63968" args="(QString fromUser, QString toUser, QString message, QString timeSent)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void clientInformation::handleSendMessage </td>
          <td>(</td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname"><em>fromUser</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname"><em>toUser</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname"><em>message</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname"><em>timeSent</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Slot to handle the signal from a sent message. The user that calls this slot is the user that is sending the message. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">fromUser</td><td>The from user </td></tr>
    <tr><td class="paramname">toUser</td><td>The to user </td></tr>
    <tr><td class="paramname">message</td><td>The message being sent </td></tr>
    <tr><td class="paramname">timeSent</td><td>The time the message was sent </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ace9eaf311dea9e224a428f6146a387e9"></a><!-- doxytag: member="clientInformation::isUserFriend" ref="ace9eaf311dea9e224a428f6146a387e9" args="(QString user)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool clientInformation::isUserFriend </td>
          <td>(</td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname"><em>user</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Checks whether or not the parameter friend is in the friends list of this user. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">user</td><td>QString name of user to check if it exists in the friend's list </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A boolean value indicating whether or not the user exists or not </dd></dl>

</div>
</div>
<a class="anchor" id="ae1b4d3d1500f4579a84493244ef8bde2"></a><!-- doxytag: member="clientInformation::removeFromFriendsList" ref="ae1b4d3d1500f4579a84493244ef8bde2" args="(clientInformation *nonFriend)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool clientInformation::removeFromFriendsList </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classclient_information.html">clientInformation</a> *&#160;</td>
          <td class="paramname"><em>nonFriend</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Removes the parameter user to the friends list of this user. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">nonFriend</td><td><a class="el" href="classclient_information.html" title="Client helper methods.">clientInformation</a> object of the user to remove as a friend to this user </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A boolean value indicating whether or not the addition was successfully or not </dd></dl>

</div>
</div>
<a class="anchor" id="af9bf597778e57d9e35d9b754a6ab7bcc"></a><!-- doxytag: member="clientInformation::sendMessage" ref="af9bf597778e57d9e35d9b754a6ab7bcc" args="(QString personThatSentMessage, QString message, QString timeSentAt)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool clientInformation::sendMessage </td>
          <td>(</td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname"><em>personThatSentMessage</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname"><em>message</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname"><em>timeSentAt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sends message passed in to the person in the parameters with the time the message was sent at. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">personThatSentMessage</td><td>The QString of the user that the message was sent from </td></tr>
    <tr><td class="paramname">message</td><td>The QString of the user that the message is going to be sent to </td></tr>
    <tr><td class="paramname">timeSentAt</td><td>The time the message was sent </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A boolean value indicating whether or not the message was successfully sent </dd></dl>

</div>
</div>
<a class="anchor" id="ab54225eaa4950b985aed1fc1afa8e743"></a><!-- doxytag: member="clientInformation::sendOnlineFriendsList" ref="ab54225eaa4950b985aed1fc1afa8e743" args="(QList&lt; QString &gt; serverUsersOnline)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void clientInformation::sendOnlineFriendsList </td>
          <td>(</td>
          <td class="paramtype">QList&lt; QString &gt;&#160;</td>
          <td class="paramname"><em>serverUsersOnline</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sends a list of friends online. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">serverUsersOnline</td><td>The QList of users online </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a002396f42cea76e92b47f8967afea8ad"></a><!-- doxytag: member="clientInformation::updateSocket" ref="a002396f42cea76e92b47f8967afea8ad" args="(QTcpSocket *sockToUpdateTo)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void clientInformation::updateSocket </td>
          <td>(</td>
          <td class="paramtype">QTcpSocket *&#160;</td>
          <td class="paramname"><em>sockToUpdateTo</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Updates the current socket to a new socket. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">sockToUpdateTo</td><td>The QTcpSocket to update </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>/Users/plamontagna/Documents/spa-cs340project/ChatServer/<a class="el" href="clientinformation_8h_source.html">clientinformation.h</a></li>
<li>/Users/plamontagna/Documents/spa-cs340project/ChatServer/<a class="el" href="clientinformation_8cpp.html">clientinformation.cpp</a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Tue Nov 29 2011 23:53:09 for N3RD CH4T by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
